<template>
  <div id="container">
    <el-button-group>
      <el-button @click="onClick" type="primary" icon="el-icon-location
">羊城中央</el-button>
      <el-button @click="msg" type="primary" icon="el-icon-search"></el-button>
      <el-button @click="msg" type="primary" icon="el-icon-menu"></el-button>
    </el-button-group>
  </div>
</template>

<script>
import Event from './common/Event.js'

export default {
  data() {
    return {
        gzCenter: [113.31, 23.08]
    };
  },
  methods: {
    onClick() {
      Event.$emit('on-sent-gzcenter', this.gzCenter);
    },
    msg() {
      this.$message('功能未启用，敬请期待！')
    }
  }
};
</script>

<style>
#container {
  position: absolute;
  top: 80px;
  right: 30px;
}
</style>